<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
	<head>
		<meta charset="UTF-8">
		<title>
			我要投资-产品说明
		</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<jsp:include page="/include/wchat/head.jsp"></jsp:include>
		<link type="text/css" rel="stylesheet" href="/v2/wchat/resrc/css/invest.css">
	</head>

	<body>
		<div id="header">
			<s:if test="%{#request.productDetailMap.type == 1}">
				<a href="/wchatYebDetail.do?pid=${productDetailMap.pid }" class="backto">返回</a>
			</s:if>
			<s:elseif test="%{#request.productDetailMap.type == 2}">
				<a href="/wchatYlbDetail.do?pid=${productDetailMap.pid }" class="backto">返回</a>
			</s:elseif>
			<s:elseif test="%{#request.productDetailMap.type == 3}">
				<a href="/wchatJfbDetail.do?pid=${productDetailMap.pid }" class="backto">返回</a>
			</s:elseif>
			<div class="title-sub">
				产品说明
			</div>
		</div>


		<div id="wrap">
			<div class="desc-pro">
				<div class="desc-items">
					<h2>
						概要
					</h2>
					<div id="summaryInfo">
						<table class="desc-table">
							<tbody>
								<tr>
									<th>
										编号
									</th>
									<td>
										<s:if test="%{#request.productDetailMap.type == 1}">余额宝</s:if>
										<s:elseif test="%{#request.productDetailMap.type == 2}">月利宝</s:elseif>
										<s:elseif test="%{#request.productDetailMap.type == 3}">季发宝</s:elseif>
										${productDetailMap.SN }
									</td>
								</tr>
								<tr>
									<th>
										期限
									</th>
									<td>
										<s:if test="%{#request.productDetailMap.type == 1}">活期</s:if>
										<s:elseif test="%{#request.productDetailMap.type == 2}">1个月</s:elseif>
										<s:elseif test="%{#request.productDetailMap.type == 3}">3个月</s:elseif>
									</td>
								</tr>
								<tr>
									<th>
										年化收益率
									</th>
									<td>
										<s:if test="%{#request.productDetailMap.type == 1}">${productDetailMap.yebAnnualRate }</s:if>
										<s:else>${productDetailMap.productAnnualRate }</s:else>%
									</td>

								</tr>
								<tr>
									<th>
										加入期
									</th>
									<td>
										<s:if test="%{#request.productDetailMap.type == 1}">
											<fmt:parseDate var="publishTime" value="${productDetailMap.publishTime}" type="DATE" pattern="yyyy-MM-dd"/>
											<fmt:formatDate value='${publishTime}' pattern='yyyy.MM.dd' /> 起
										</s:if>
										<s:else>
											<fmt:parseDate var="publishTime" value="${productDetailMap.publishTime}" type="DATE" pattern="yyyy-MM-dd"/>
											<fmt:formatDate value='${publishTime}' pattern='yyyy.MM.dd' /> 至
											<fmt:parseDate var="remainTimeEnd" value="${productDetailMap.remainTimeEnd}" type="DATE" pattern="yyyy-MM-dd"/>
											<fmt:formatDate value='${remainTimeEnd}' pattern='yyyy.MM.dd' />
										</s:else>
									</td>
								</tr>
								<tr>
									<th>
										加入条件
									</th>
									<td>
										<s:if test="%{#request.productDetailMap.type == 1}">
											加入金额 1,000 元起，且以 1,000 元的倍数递增
										</s:if>
										<s:else>50元起投</s:else>
									</td>
								</tr>
								<tr>
									<th>
										单户额度上限
									</th>
									<td>
										<s:if test="%{#request.productDetailMap.type == 1}">
											￥100,000
										</s:if>
										<s:else>不超过产品总额度</s:else>
									</td>
								</tr>
								
								<s:else>
									<tr>
										<th>
											到期日
										</th>
										<td>
											<fmt:parseDate var="repayTimeEnd" value="${productDetailMap.repayTimeEnd}" type="DATE" pattern="yyyy-MM-dd"/>
											<fmt:formatDate value='${repayTimeEnd}' pattern='yyyy.MM.dd' />
										</td>
									</tr>
								</s:else>
								<tr>
									<th>
										保障方式
									</th>
									<td>
										<i class="icon-safe"></i>100% 本息保障
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<s:if test="#request.productDetailMap.type == 1">
				<div class="desc-items">
					<h2>
						费用
					</h2>
					<table class="desc-table">
						<tbody>
							<tr>
								<th>
									加入费率
								</th>
								<td>
									0.00 %
								</td>
							</tr>
							<tr>
								<th>
									管理费率
								</th>

								<td>
									详情参见
									<a href="/yebContractDetail.do"
										class="protocol">《共富网余额宝投资协议》</a>
								</td>

							</tr>
							<tr>
								<th>
									到期赎回费率
								</th>
								<td>
									0.00 %
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="desc-items">
					<h2>
						赎回
					</h2>
					<table class="desc-table">
						<tbody>
							<tr>
								<th>
									到期赎回方式
								</th>
								<td>
									工作日当天15：00（含15：00）之前加入余额宝的资金，当天计息；工作日15:00之后加入余额宝的资金下一个工作日计息。
								</td>
							</tr>
							<tr>
								<th>
									提前赎回方式
								</th>

								<td>
									<p>
										期限内支持提前赎回
									</p>
									<p>
										详情参见
										<a href="/yebContractDetail.do"
										class="protocol">《共富网余额宝投资协议》</a>
									</p>
								</td>


							</tr>
						</tbody>
					</table>
				</div>
				</s:if>
				<s:if test="#request.productDetailMap.type == 2">
				<div class="desc-items">
					<h2>
						费用
					</h2>
					<table class="desc-table">
						<tbody>
							<tr>
								<th>
									加入费率
								</th>
								<td>
									0.00 %
								</td>
							</tr>
							<tr>
								<th>
									管理费率
								</th>

								<td>
									详情参见
									<a href="/getMessageBytypeId.do?typeId=22"
										class="protocol">《共富网投资咨询与管理服务协议》</a>
								</td>

							</tr>
							<tr>
								<th>
									到期赎回费率
								</th>
								<td>
									0.00 %
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="desc-items">
					<h2>
						赎回
					</h2>
					<table class="desc-table">
						<tbody>
							<tr>
								<th>
									到期赎回方式
								</th>
								<td>
									投资期间不可提前赎回 
								</td>
							</tr>
							<tr>
								<th>
									提前赎回方式
								</th>

								<td>
									<p>
										投资期间不可提前赎回
									</p>
									<p>
										详情参见
										<a href="/getMessageBytypeId.do?typeId=22"
										class="protocol">《共富网投资咨询与管理服务协议》</a>
									</p>
								</td>


							</tr>
						</tbody>
					</table>
				</div>
				</s:if>
				<s:if test="#request.productDetailMap.type == 3">
				<div class="desc-items">
					<h2>
						费用
					</h2>
					<table class="desc-table">
						<tbody>
							<tr>
								<th>
									加入费率
								</th>
								<td>
									0.00 %
								</td>
							</tr>
							<tr>
								<th>
									管理费率
								</th>

								<td>
									详情参见
									<a href="/getMessageBytypeId.do?typeId=22"
										class="protocol">《共富网投资咨询与管理服务协议》</a>
								</td>

							</tr>
							<tr>
								<th>
									到期赎回费率
								</th>
								<td>
									0.00 %
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="desc-items">
					<h2>
						赎回
					</h2>
					<table class="desc-table">
						<tbody>
							<tr>
								<th>
									到期赎回方式
								</th>
								<td>
									债权优先购买，平台统筹赎回
								</td>
							</tr>
							<tr>
								<th>
									提前赎回方式
								</th>

								<td>
									<p>
										期限内支持提前赎回
									</p>
									<p>
										详情参见
										<a href="/getMessageBytypeId.do?typeId=22"
										class="protocol">《共富网投资咨询与管理服务协议》</a>
									</p>
								</td>


							</tr>
						</tbody>
					</table>
				</div>
				</s:if>
			</div>
		</div>

		<jsp:include page="/include/wchat/footer.jsp"></jsp:include>

<script type="text/javascript">
$(function(){
    var annualInterestRate = Number('7.00');
    var anunPreview300 = (1*Math.pow((1+annualInterestRate/(100*12)),12) - 1)/1;
    var anunPreview100 = annualInterestRate/100;
    $("#anunPreview300").html((anunPreview300*100).toFixed(2));
    $("#anunPreview100").html((anunPreview100*100).toFixed(2));
});

</script>
</body>
</html>
